import unittest
import main
import datetime


class MyTestCase(unittest.TestCase):
    def test_something(self):
        self.assertEqual(89, main._count_day_in_year(2022, 3, 30))
        d = datetime.datetime(datetime.MINYEAR, 1, 1)
        delta = datetime.timedelta(1)
        for i in range(1, 1000000):
            self.assertEqual(d.timetuple().tm_yday, main._count_day_in_year(d.year, d.month, d.day))
            d += delta



if __name__ == '__main__':
    unittest.main()
